package com.zbs.framework.swagger.entity.eolink;

import com.zbs.framework.swagger.utils.DateUtils;
import lombok.Data;

@Data
public class MockExpectation {
    private Long expectationID;
    private String expectationName;
    private String triggerCondition;
    private String responseHttpCode;
    private String responseDelay;
    private String responseHeader;
    private Integer responseBodySettingType;
    private String mockConfig;
    private String mockRule;
    private String mockResult;
    private String updateTime;

    public MockExpectation() {
        this.expectationID = (long)(Math.random()*9+1)*1000000;
        this.expectationName = "\u7cfb\u7edf\u9ed8\u8ba4\u671f\u671b";
        this.triggerCondition = "{\"headerParam\":[],\"bodyParam\":[],\"urlParam\":[],\"bodyParamJsonType\":\"0\",\"bodyParamType\":\"0\",\"restParam\":[]}";
        this.responseHttpCode = "200";
        this.responseDelay = "0.00";
        this.responseHeader = "[]";
        this.responseBodySettingType = 4;
        this.mockConfig = "{type: \"object\"}";
        this.mockRule = null;
        this.mockResult = null;
        this.updateTime = DateUtils.getNow();
    }
}
